<?php

namespace app\cps\controller;

use think\facade\Request;
use app\common\Common;
use app\cps\service\MaterialService;
use app\common\StsService;

class Material extends Base
{
    private $service;

    public function __construct(MaterialService $service)
    {
        parent::__construct();
        $this->service = $service;
    }

    // 渲染短剧列表
    public function index()
    {
        return view();
    }

    // 渲染短剧详情
    public function info()
    {
        return view();
    }

    /**
     * 短剧列表
     */
    public function list()
    {
        $params = Request::param();

        $data = $this->service->getMaterialList($params);

        return Common::success($data);
    }

}